package artibella.media.controls.ui 
{
	import flash.display.BlendMode;
	import flash.display.JointStyle;
	import flash.display.LineScaleMode;
	import flash.display.MovieClip;
	import flash.text.TextField;
	import flash.text.TextFormat;
	
	/**
	 * ...
	 * @author 
	 */
	
	public class ListButton extends MovieClip
	{
		
		private var _clr:int;
		
		public function ListButton( c:int = 0x000000 ) 
		{
			_clr = c;
			
			_init();
		}
		
		private function _init():void
		{
			buttonMode = true;
			
			drawList();
		}
		
		// - - -
		
		public function drawList():void
		{
			graphics.clear();
			
			//graphics.lineStyle( 1, 0xFFFFFF, 1, false, LineScaleMode.NONE, null, JointStyle.MITER );
			graphics.beginFill( _clr, 0 );
			graphics.drawCircle( 0, 0, 8 );
			//graphics.drawRect( -6, -6, 12, 12 );
			graphics.endFill();
			
			graphics.lineStyle();
			graphics.beginFill( _clr, 1 );
			//graphics.drawRect( -4, -4, 3, 3 );
			//graphics.drawRect( -4, 1, 3, 3 );
			
			graphics.drawRect( -4, -6, 3, 3 );
			graphics.drawRect( -4, -1, 3, 3 );
			graphics.drawRect( -4, 4, 3, 3 );
			graphics.endFill();
			
			graphics.lineStyle( 1, _clr, 1, true, LineScaleMode.NONE, null, JointStyle.MITER );
			//graphics.moveTo( 0, -3 );
			//graphics.lineTo( 6, -3 );
			//graphics.moveTo( 0, 2 );
			//graphics.lineTo( 6, 2 );
			
			graphics.moveTo( 0, -5 );
			graphics.lineTo( 6, -5 );
			graphics.moveTo( 0, 0 );
			graphics.lineTo( 6, 0 );
			graphics.moveTo( 0, 5 );
			graphics.lineTo( 6, 5 );
		}
	}

}